package org.zdd.bookstore.model.dao;

import org.zdd.bookstore.common.utils.MyMapper;
import org.zdd.bookstore.model.entity.CartBook;
import org.zdd.bookstore.model.entity.Carts;

import java.util.List;

public interface CartMapper extends MyMapper<Carts> {
    public List<CartBook> selectByUserId(int userId);


    void deleteById(int bookId, int userId);

    List<CartBook> selectById(int bookId, int userId);


    void updateById(int userId,int bookId, int newNum);

    void checkedById(int userId,int bookId ,int check);
    void deleteByOrder(int userId);

    void initCart(int userId);


}